package map.android.baidu.carpool.response;

import com.baidu.lbs.net.http.response.ComNetResponse;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by zhangtongyu on 15/3/25.
 * main模块config接口response
 */
public class MainConfigResponse extends ComNetResponse implements Serializable{

    private static final long serialVersionUID = -4714283154535164126L;

    private int errNo = -1;
    private String msg = "";

    public MainConfig data;

    public static class MainConfig implements Serializable{

        private static final long serialVersionUID = 442792985979662182L;
        public ArrayList<CityItem> citylist;
        public ArrayList<CarTypeItem> carType;
        public DiscountInfo discount;
        public ArrayList<PartnerItem> partnerList;
        public ArrayList<String> carerMsg;
        public PassagerNotice notice;
        public String cache;
        public String customerServicePhone;
        public int dateLimit;
        public String carTitle;

        public class CityItem implements Serializable{

            private static final long serialVersionUID = -73662031514458736L;

            public String cityName;
            public String cityCode;
        }

        public static class CarTypeItem implements Serializable{

            private static final long serialVersionUID = -7725676160597898062L;

            public String type;
            public String name;
            public String desc;
        }

        public class DiscountInfo implements Serializable{

            private static final long serialVersionUID = -7113829265663006508L;

            public String desc;
        }

        public class PartnerItem implements Serializable{

            private static final long serialVersionUID = 6873215106506584336L;

            public String name;
        }

        public class PassagerNotice implements Serializable {

            private static final long serialVersionUID = -4611779100151545073L;

            public String title;
            public ArrayList<String> content;
        }

    }

    @Override
    public boolean isBadResponse() {
        return false;
    }

    @Override
    public int getErrorNo() {
        return errNo;
    }

    @Override
    public String getErrorMsg() {
        return msg;
    }
}
